package com.oren.Bean;

import java.util.HashMap;
import java.util.Map;

/**  
* @description 请求参数对象
* @author  wangshiwei  
* @date   2018年6月22日 下午2:48:14
    
*/
public class Param extends Object{

	private Map<String ,Object > paramMap=new HashMap<String,Object>();

	public Param() {
	}

	/**
	 * @param paramMap
	 */
	public Param(Map<String, Object> paramMap) {
		this.paramMap = paramMap;
	}

	public Map<String, Object> getParamMap() {
		return paramMap;
	}

	public void setParamMap(Map<String, Object> paramMap) {
		this.paramMap = paramMap;
	}
	//获取String类型的参数数值
	public String getString(String name){
		return paramMap.get(name).toString();
	}

	public boolean isEmpty(){
		if(paramMap!=null && paramMap.size()>0){
			return false;
		} else {
			return true;
		}

	}

}
